<html>
	<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="http://platform.linkedin.com/in.js">
  api_key: _nhHscSQQaoMJUqX2VPBnPm3i7gl7rU3sArZJOfN3L7pJ3Ubv-EOzSzjMCnobxas
</script>

<script type="text/javascript" >
	function loadData() {
	  /*IN.API.Profile("me")
    	.fields(["id", "firstName", "lastName", "pictureUrl","headline"])
	    .result(function(result) {
    	  profile = result.values[0];
	      profHTML = "<p><a href=\"" + profile.publicProfileUrl + "\">";
    	  profHTML += "<img class=img_border align=\"left\" src=\"" + profile.pictureUrl + "\"></a>";      
	      profHTML += "<a href=\"" + profile.publicProfileUrl + "\">";
    	  profHTML += "<h2 class=myname>" + profile.firstName + " " + profile.lastName + "</a> </h2>";
	      profHTML += "<span class=myheadline>" + profile.headline + "</span>";
    	  $("#profile").html(profHTML);
    	});*/
    	IN.API.PeopleSearch().fields("id","pictureUrl","firstName","lastName","headline","educations","publicProfileUrl")
			.params({keywords: "USP", sort: "relevance",  count: 25})
	    	.result(function(result, metadata) {
    	 		setSearchResults(result, metadata);
	    });
	}
	function setSearchResults(result, metadata) {
  searchHTML = "Search Results (" + result.numResults + "):<ul>";
  console.log(result);
  for (i in result.people.values) {  	
    searchHTML = searchHTML + "<li><a href=\""+result.people.values[i].publicProfileUrl+"\"><img src=\""+result.people.values[i].pictureUrl+"\">";
    searchHTML = searchHTML + result.people.values[i].firstName + " ";
    searchHTML = searchHTML + result.people.values[i].lastName + " ";
    searchHTML = searchHTML + " (memberToken: " + result.people.values[i].id + ") - <b>"+result.people.values[i].headline+"</b></a></li>";
  }
  searchHTML = searchHTML + "</ul>";
  
  document.getElementById("profile").innerHTML = searchHTML;
}
 
</script>
		<title></title>
	</head>
	<body>
	
	</script>
<script type="in/Login" data-onAuth="loadData">
	Hello, <?js= firstName ?> <?js= lastName ?>.
</script>
	<div id="profile"/>

	</body>
</html>

